import permission from './permission'

const install = function(app) {
	app.directive('permission', permission)
}

if (window.Vue) {
	window['permission'] = permission
	Vue.use(install)
}

permission.install = install
export default permission